package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.models.auth.In;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Created by he on 2025/4/5 16:47
   支付表实体
 */
@Data
public class Payment extends BaseEntity{
    // 支付表ID
    @TableId(value = "payment_id", type = IdType.AUTO)
    private Integer paymentId;
    // 支付号码
    private Integer paymentNo;
    //订单号
    private Integer bookId;
    //支付时间
    private LocalDateTime paymentTime;
    //支付方法[现金or支付宝]
    private String payMethod;
    // 支付金额
    private BigDecimal amount;

    public Payment() {
    }
    @Override
    public String toString() {
        return "Payment{" +
                "paymentId=" + paymentId +
                ", paymentNo=" + paymentNo +
                ", bookId=" + bookId +
                ", paymentTime=" + paymentTime +
                ", payMethod='" + payMethod + '\'' +
                ", amount=" + amount +
                '}';
    }
}
